package com.runvp.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "biz.adapay")
public class AdaPayConfig {

    // appId
    private static String appId ;
    // apiKey为prod模式的API KEY
    private static String apiKey ;
    //mockApiKey为mock模式的API KEY
    private static String mockApiKey ;
    //mockApiKey为mock模式的API KEY
    private static String adapayPublic ;
    //rsaPrivateKey为商户发起请求时，用于请求参数加签所需要的RSA私钥
    private static String rsaPrivateKey ;


    public static String getAdapayPublic() {
        return adapayPublic;
    }

    public void setAdapayPublic(String adapayPublic) {
        AdaPayConfig.adapayPublic = adapayPublic;
    }

    public static String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        AdaPayConfig.appId = appId;
    }

    public static String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        AdaPayConfig.apiKey = apiKey;
    }

    public static String getMockApiKey() {
        return mockApiKey;
    }

    public void setMockApiKey(String mockApiKey) {
        AdaPayConfig.mockApiKey = mockApiKey;
    }

    public static String getRsaPrivateKey() {
        return rsaPrivateKey;
    }

    public void setRsaPrivateKey(String rsaPrivateKey) {
        AdaPayConfig.rsaPrivateKey = rsaPrivateKey;
    }
}
